﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

#if SILVERLIGHT
using System.Windows;
using GameEngineSL.SilverlightCompatibility;
#else
using System.Drawing;
#endif

namespace GameEngine.Worlds
{
    public abstract class Object : ITick
    {
        private PointF position;
        private SizeF size;
        
        public Object()
        {
            position = new PointF(0, 0);
            size = new SizeF(10, 10);
        }

        /// <summary>
        /// Distance from the origin of the world in meters
        /// </summary>
        public PointF Position
        {
            get
            {
                return position;
            }
            set
            {
                position = value;
            }
        }

        /// <summary>
        /// Height and width of the object in meters
        /// </summary>
        public SizeF Size
        {
            get
            {
                return size;
            }
            set
            {
                size = value;
            }
        }

        #region ITick Members

        public abstract void Tick(float seconds);

        #endregion
    }
}
